import Sact from "sact";

export default Sact.component({
    template: `<div class="simple-post-card">
    <section class="post-card-wrap">
        <a target="_blank" :href="'/file/describe/' + props.id + '/'" :title="props.title">
            <div class="colletionsFlag">
                <div class="number">
                    售价 {{ props.money }} 元
                </div>
            </div>
            <div class="post-card-content">
                <div class="cover" :style="'background-image: url(' + props.imgUrl + ');'">
                </div>
            </div>
            <div class="Ctitle text-truncate"> {{ props.title }}</div>
            <div class="status">
                <span>已售: {{ props.sellNum }} </span>
                <time style="float: right;"> {{ props.time }}</time>
            </div>
        </a>
    </section>
</div>`,
name:"file",
    props:["id","title","money","imgUrl","sellNum","time"],
})